<?php

namespace app\apiadmin\model\behavior;

use app\apiadmin\model\mongoModel;

class LiveUserMsgMongo extends mongoModel
{

    protected $collection = 'live_user_msg_';

    protected $pk = '_id';

    public function __construct($id) {
        $this->collection = $this->collection.$id;
        parent::__construct();
    }

    public static function user_list($liveId)
    {
        $model = new static($liveId);
        return $model->select();
    }
}